summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-02 15:28:52 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-02 15:28:52 +0900
commitc9ac9923dfc68478a6f01675757104d98b9435d0 (patch)
tree09599bca4e01bb4f3e4b05c435da2b9d8de7faa6 /src/client/app/common/scripts
parent[Client] Resolve #2225 (diff)
downloadsharkey-c9ac9923dfc68478a6f01675757104d98b9435d0.tar.gz
sharkey-c9ac9923dfc68478a6f01675757104d98b9435d0.tar.bz2
sharkey-c9ac9923dfc68478a6f01675757104d98b9435d0.zip
Refactor: rename alert to dialog
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/check-for-update.ts2
-rw-r--r--src/client/app/common/scripts/fuck-ad-block.ts2
-rw-r--r--src/client/app/common/scripts/note-mixin.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/common/scripts/check-for-update.ts b/src/client/app/common/scripts/check-for-update.ts
index d0e22ca325..e8a5d18f09 100644
--- a/src/client/app/common/scripts/check-for-update.ts
+++ b/src/client/app/common/scripts/check-for-update.ts
@@ -22,7 +22,7 @@ export default async function($root: any, force = false, silent = false) {
}
/*if (!silent) {
- $root.alert({
+ $root.dialog({
title: $root.$t('@.update-available-title'),
text: $root.$t('@.update-available', { newer, current })
});
diff --git a/src/client/app/common/scripts/fuck-ad-block.ts b/src/client/app/common/scripts/fuck-ad-block.ts
index f5cc1b71f2..ba7e5a9f87 100644
--- a/src/client/app/common/scripts/fuck-ad-block.ts
+++ b/src/client/app/common/scripts/fuck-ad-block.ts
@@ -4,7 +4,7 @@ export default ($root: any) => {
require('fuckadblock');
function adBlockDetected() {
- $root.alert({
+ $root.dialog({
title: $root.$t('@.adblock.detected'),
text: $root.$t('@.adblock.warning')
});
diff --git a/src/client/app/common/scripts/note-mixin.ts b/src/client/app/common/scripts/note-mixin.ts
index ae824260cf..36b8ca32c1 100644
--- a/src/client/app/common/scripts/note-mixin.ts
+++ b/src/client/app/common/scripts/note-mixin.ts
@@ -142,7 +142,7 @@ export default (opts: Opts = {}) => ({
this.$root.api('notes/favorites/create', {
noteId: this.appearNote.id
}).then(() => {
- this.$root.alert({
+ this.$root.dialog({
type: 'success',
splash: true
});