@@ -55,7 +55,7 @@ <h5>Manage Algolia Indices</h5>
55
55
< uui-button label ="edit " look ="default " color ="default " ng-click ="vm.viewIndex(index) ">
56
56
< uui-icon name ="edit "> </ uui-icon >
57
57
</ uui-button >
58
- < uui-button label ="build " look ="default " color ="danger " ng-click ="vm.buildIndex (index) ">
58
+ < uui-button label ="build " look ="default " color ="danger " ng-click ="vm.buildIndexConfirm (index) ">
59
59
< uui-icon name ="sync "> </ uui-icon >
60
60
</ uui-button >
61
61
< uui-button label ="search " look ="default " color ="positive " ng-click ="vm.searchIndex(index) ">
@@ -84,34 +84,29 @@ <h5>Manage Algolia Indices</h5>
84
84
< form id ="manageIndexFrm " name ="manageIndexFrm ">
85
85
< uui-form-layout-item >
86
86
< uui-label slot ="label " for ="inName " required =""> Name</ uui-label >
87
+ < span class ="alg-description " slot ="description "> Please enter a name for the index. After save,< br /> you will not be able to change it.</ span >
87
88
< div >
88
- < input type ="text " ng-model ="vm.manageIndex.name " />
89
+ < input type ="text " ng-model ="vm.manageIndex.name " ng-disabled =" vm.manageIndex.id != 0 " style =" width:17% " no-dirty-check />
89
90
</ div >
90
91
</ uui-form-layout-item >
91
92
92
93
< div class ="alg-col-2 ">
93
94
< uui-form-layout-item >
94
95
< uui-label slot ="label "> Document Types</ uui-label >
95
- < span slot ="description "> Please select the document types you would like to index, and choose the fields to include.</ span >
96
+ < span class =" alg-description " slot ="description "> Please select the document types you would like to index, and choose the fields to include.</ span >
96
97
< uui-icon-registry-essential >
97
- < uui-ref-node selectable
98
+ < uui-ref-node id =" {{ contentType.alias }} "
98
99
ng-attr-selected ="{{contentType.selected || undefined}} "
99
100
ng-repeat ="contentType in vm.manageIndex.contentTypesList "
100
- ng-on-selected ="vm.manageIndex.showProperties(contentType) "
101
- ng-on-unselected ="vm.manageIndex.hideProperties() "
102
- name ="{{ contentType.name }} "
103
- detail ="{{ contentType.alias }} ">
101
+ ng-on-open ="vm.manageIndex.showProperties(contentType) "
102
+ name ="{{ contentType.name }} ">
104
103
< umb-icon slot ="icon " icon ="{{ contentType.icon }} "> </ umb-icon >
105
- < uui-tag ng-if ="contentType.selected " size ="s " slot ="tag " color ="positive "> Selected</ uui-tag >
104
+ < uui-tag ng-if ="contentType.selected " size ="s " slot ="tag " color ="primary "> Selected</ uui-tag >
106
105
< uui-action-bar slot ="actions ">
107
- < uui-button label ="Choose properties "
108
- color ="positive "
109
- ng-click ="vm.manageIndex.showProperties(contentType) ">
110
- < uui-icon name ="see "> </ uui-icon >
111
- </ uui-button >
112
106
< uui-button label ="Remove "
113
107
color ="danger "
114
- ng-if ="contentType.allowRemove ">
108
+ ng-if ="contentType.allowRemove "
109
+ ng-click ="vm.manageIndex.removeContentType(contentType) ">
115
110
< uui-icon name ="delete "> </ uui-icon >
116
111
</ uui-button >
117
112
</ uui-action-bar >
@@ -128,9 +123,8 @@ <h5>Manage Algolia Indices</h5>
128
123
ng-on-unselected ="vm.manageIndex.removeProperty(property) "
129
124
ng-repeat ="property in vm.manageIndex.propertiesList "
130
125
name ="{{ property.name }} ">
131
- < uui-tag ng-if ="property.selected " size ="s " slot ="tag " color ="positive "> Selected</ uui-tag >
126
+ < uui-tag ng-if ="property.selected " size ="s " slot ="tag " color ="primary "> Selected</ uui-tag >
132
127
< ul style ="list-style: none; padding-inline-start: 0px; margin: 0; ">
133
- < li > < span style ="font-weight: 700 "> Alias:</ span > {{ property.alias }}</ li >
134
128
< li > < span style ="font-weight: 700 "> Group: </ span > {{ property.group }}</ li >
135
129
</ ul >
136
130
</ uui-card-content-node >
@@ -160,8 +154,7 @@ <h5>Manage Algolia Indices</h5>
160
154
< form id ="searchFrm " name ="searchFrm ">
161
155
< uui-form-layout-item >
162
156
< div >
163
- < uui-input id ="inSearch " type ="text " name ="indexName " placeholder ="" label ="search " ng-model ="vm.searchQuery " style ="width: 50% ">
164
- </ uui-input >
157
+ < input type ="text " ng-model ="vm.searchQuery " class ="mt2 " style ="width:50% " no-dirty-check />
165
158
< uui-icon-registry-essential >
166
159
< uui-button type ="button " label ="Search " look ="primary " color ="positive " ng-click ="vm.search() ">
167
160
< uui-icon name ="search "> </ uui-icon >
@@ -188,7 +181,7 @@ <h5>Manage Algolia Indices</h5>
188
181
</ div >
189
182
190
183
<!-- Notifications -->
191
- < uui-toast-notification-container auto-close ="5000 " bottom-up ="" class ="alg-toast ">
184
+ < uui-toast-notification-container auto-close ="3000 " bottom-up ="" class ="alg-toast ">
192
185
</ uui-toast-notification-container >
193
186
194
187
< uui-icon-registry-essential >
0 commit comments