4141 </v-list-item >
4242 <v-list-item v-if =" selectedTag" >
4343 <v-text-field v-model =" selectedTag.name" label =" Name" density =" compact" class =" pt-2" />
44+ <v-text-field v-model =" selectedTag.description" label =" Description" density =" compact" class =" pt-2" />
4445 <v-text-field v-model =" selectedTagDefaultExpiration" label =" Default expiration (days)" density =" compact" />
4546 <v-combobox
4647 v-model =" selectedTag.produces"
@@ -124,6 +125,7 @@ export default {
124125 totalTags: 0 ,
125126 tagHeaders: [
126127 { title: " Name" , key: " name" },
128+ { title: " Description" , key: " description" },
127129 { title: " Default expiration (days)" , key: " default_expiration" },
128130 { title: " Produces" , key: " produces" },
129131 { title: " Replaces" , key: " replaces" },
@@ -164,6 +166,7 @@ export default {
164166 updateTag() {
165167 const params = {
166168 name: this .selectedTag .name ,
169+ description: this .selectedTag .description ,
167170 produces: this .selectedTag .produces .map (tag => tag .name || tag ),
168171 replaces: this .selectedTag .replaces .map (tag => tag .name || tag ),
169172 default_expiration: moment .duration (this .selectedTagDefaultExpiration , " days" )
@@ -172,10 +175,10 @@ export default {
172175 .put (` /api/v2/tags/${this .selectedTag .id } ` , params )
173176 .then (() => {
174177 this .$eventBus .emit (" displayMessage" , {
175- message: ` Tag ${this .selectedTag .name } succesfully updated ` ,
178+ message: ` Tag ${this .selectedTag .name } successfully updated ` ,
176179 status: " success"
177180 });
178- this .searchTags (this .page , this .perPage );
181+ this .searchTags ({ page: this .page , itemsPerPage: this .perPage , sortBy: null } );
179182 })
180183 .catch (error => {
181184 console .log (error );
@@ -195,7 +198,7 @@ export default {
195198 message: " Changes succesfully changed." ,
196199 status: " success"
197200 });
198- this .searchTags ();
201+ this .searchTags ({ page: this . page , itemsPerPage: this . perPage , sortBy: null } );
199202 })
200203 .catch (error => {
201204 console .log (error );
0 commit comments