mirror of https://github.com/nextcloud/bookmarks
UI: Fix rename Tag
This commit is contained in:
parent
60bfbf0363
commit
f6aef1ab1d
|
@ -281,10 +281,10 @@ export default {
|
|||
})
|
||||
},
|
||||
|
||||
[actions.RENAME_TAG]({ commit, dispatch, state }, { oldName, newName }) {
|
||||
async [actions.RENAME_TAG]({ commit, dispatch, state }, { oldName, newName }) {
|
||||
commit(mutations.FETCH_START, { type: 'tag' })
|
||||
try {
|
||||
const response = axios
|
||||
const response = await axios
|
||||
.put(url(state, `/tag/${oldName}`), {
|
||||
name: newName,
|
||||
})
|
||||
|
@ -302,7 +302,7 @@ export default {
|
|||
commit(mutations.FETCH_END, 'tag')
|
||||
commit(
|
||||
mutations.SET_ERROR,
|
||||
AppGlobal.methods.t('bookmarks', 'Failed to create bookmark')
|
||||
AppGlobal.methods.t('bookmarks', 'Failed to rename tag')
|
||||
)
|
||||
throw err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue