UI: Fix rename Tag

This commit is contained in:
Marcel Klehr 2020-07-22 17:51:02 +02:00
parent 60bfbf0363
commit f6aef1ab1d
1 changed files with 3 additions and 3 deletions

View File

@ -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
}