aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
author135e2 <[email protected]>2022-08-13 22:46:12 +0800
committer135e2 <[email protected]>2022-08-13 22:46:12 +0800
commitac6e9eca34d130f065ae47a0df8d722164fa9748 (patch)
treed797bc7fb0c46b01e08c0d737ef7ca0df12c5671 /src/App.vue
parent9b788ccf13a2018a8ff0b6bed1607770bfec314d (diff)
downloadotonashi-ac6e9eca34d130f065ae47a0df8d722164fa9748.tar.gz
otonashi-ac6e9eca34d130f065ae47a0df8d722164fa9748.tar.bz2
otonashi-ac6e9eca34d130f065ae47a0df8d722164fa9748.zip
chore: use snackbar to notify updateBackgroundImageURL event
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue
index 0641b2a..a1960eb 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -54,7 +54,14 @@
v-else-if="atSettings"
@update-title-size="updateTitleSize"
@update-content-size="updateContentSize"
- @update-background-image-u-r-l="updateBackgroundImageURL"
+ @update-background-image-u-r-l="
+ (s) => {
+ updateBackgroundImageURL(s);
+ setSnackbarText(
+ s ? `BackgroundImage set to ${s}.` : `backgroundImage reset.`
+ );
+ }
+ "
:realTitleSize="parseInt(titleSize)"
:realContentSize="contentSize"
/>