|
|
@ -237,8 +237,6 @@ async function onRename(index: number) { |
|
|
|
|
|
|
|
|
|
|
|
const valid = validate(view?.title) |
|
|
|
const valid = validate(view?.title) |
|
|
|
|
|
|
|
|
|
|
|
console.log(valid) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (valid !== true) { |
|
|
|
if (valid !== true) { |
|
|
|
notification.error({ |
|
|
|
notification.error({ |
|
|
|
message: valid, |
|
|
|
message: valid, |
|
|
@ -274,6 +272,8 @@ async function onRename(index: number) { |
|
|
|
|
|
|
|
|
|
|
|
/** Cancel renaming view */ |
|
|
|
/** Cancel renaming view */ |
|
|
|
function onCancel(index: number) { |
|
|
|
function onCancel(index: number) { |
|
|
|
|
|
|
|
if (isEditing === null) return |
|
|
|
|
|
|
|
|
|
|
|
views.value[index].title = originalTitle |
|
|
|
views.value[index].title = originalTitle |
|
|
|
onStopEdit() |
|
|
|
onStopEdit() |
|
|
|
} |
|
|
|
} |
|
|
|