testing global error handling

This commit is contained in:
Henry Jameson 2026-06-26 16:01:30 +03:00
commit ac538da1d8
2 changed files with 9 additions and 0 deletions

View file

@ -58,6 +58,7 @@ export const useInterfaceStore = defineStore('interface', {
},
layoutType: 'normal',
globalNotices: [],
globalError: null,
layoutHeight: 0,
lastTimeline: null,
foreignProfileBackground: null,
@ -176,6 +177,9 @@ export const useInterfaceStore = defineStore('interface', {
removeGlobalNotice(notice) {
this.globalNotices = this.globalNotices.filter((n) => n !== notice)
},
setGlobalError(data) {
this.globalError = data
},
pushGlobalNotice({
messageKey,
messageArgs = {},