@@ -42,14 +42,14 @@ async function saveTextContent() {
4242 }], ' ' )
4343 editDialog .value = false
4444 textContentCounter .value ++
45- showNotification ({
45+ devtoolsUiShowNotification ({
4646 message: ' Updated' ,
4747 icon: ' i-carbon-checkmark' ,
4848 classes: ' text-green' ,
4949 })
5050 }
5151 catch (error ) {
52- showNotification ({
52+ devtoolsUiShowNotification ({
5353 message: ' Something went wrong!' ,
5454 icon: ' i-carbon-warning' ,
5555 classes: ' text-red' ,
@@ -129,14 +129,14 @@ async function deleteAsset() {
129129 await rpc .deleteStaticAsset (await ensureDevAuthToken (), asset .value .filePath )
130130 asset .value = undefined as any
131131 deleteDialog .value = false
132- showNotification ({
132+ devtoolsUiShowNotification ({
133133 message: ' Asset deleted' ,
134134 icon: ' i-carbon-checkmark' ,
135135 classes: ' text-green' ,
136136 })
137137 }
138138 catch (error ) {
139- showNotification ({
139+ devtoolsUiShowNotification ({
140140 message: ' Something went wrong!' ,
141141 icon: ' i-carbon-warning' ,
142142 classes: ' text-red' ,
@@ -151,7 +151,7 @@ async function renameAsset() {
151151 const oldName = parts .slice (- 1 )[0 ].split (' .' ).slice (0 , - 1 ).join (' .' )
152152
153153 if (! newName .value || newName .value === oldName ) {
154- return showNotification ({
154+ return devtoolsUiShowNotification ({
155155 message: ' Please enter a new name' ,
156156 icon: ' i-carbon-warning' ,
157157 classes: ' text-orange' ,
@@ -164,14 +164,14 @@ async function renameAsset() {
164164 await rpc .renameStaticAsset (await ensureDevAuthToken (), asset .value .filePath , fullPath )
165165 asset .value = undefined as any
166166 renameDialog .value = false
167- showNotification ({
167+ devtoolsUiShowNotification ({
168168 message: ' Asset renamed' ,
169169 icon: ' i-carbon-checkmark' ,
170170 classes: ' text-green' ,
171171 })
172172 }
173173 catch (error ) {
174- showNotification ({
174+ devtoolsUiShowNotification ({
175175 message: ' Something went wrong!' ,
176176 icon: ' i-carbon-warning' ,
177177 classes: ' text-red' ,
0 commit comments