Fix error: show add tag form if project has no ntags

stable
David Barragán Merino 2016-08-23 14:58:34 +02:00
parent c583dd15b6
commit 4f51bd953f
2 changed files with 18 additions and 7 deletions

View File

@ -1,13 +1,10 @@
section
.admin-tags-section-wrapper-empty(
ng-show="!projectTagsAll.length"
ng-if="!projectTagsAll.length && ctrl.loading"
tg-loading="ctrl.loading"
)
p(translate="ADMIN.PROJECT_VALUES_TAGS.EMPTY")
.admin-tags-section-wrapper(
ng-show="projectTagsAll.length"
)
.admin-tags-section-wrapper
form.add-tag-container.new-value.hidden
tg-color-selection.color-column(
tg-allow-empty="true"
@ -42,7 +39,14 @@ section
svg-icon="icon-close"
)
.table-header.table-tags-editor
p.tags-empty(
ng-if="!projectTagsAll.length && !ctrl.loading"
translate="ADMIN.PROJECT_VALUES_TAGS.EMPTY"
)
.table-header.table-tags-editor(
ng-if="projectTagsAll.length"
)
div.row.header-tag-row
.color-column(translate="COMMON.FIELDS.COLOR")
.status-name(translate="COMMON.FIELDS.NAME")
@ -57,7 +61,9 @@ section
svg-icon="icon-search"
)
.table-main.table-admin-tags
.table-main.table-admin-tags(
ng-if="projectTagsAll.length"
)
div(ng-show="!mixingTags.toTag")
.admin-attributes-section-wrapper-empty(
ng-show="!projectTags.length"

View File

@ -1,3 +1,8 @@
.tags-empty {
padding: 10vh 0 0;
text-align: center;
}
.add-tag-container {
align-items: center;
background: $mass-white;