diff --git a/routes/_actions/follow.js b/routes/_actions/follow.js
index 5c6c7e4..cf5ccf5 100644
--- a/routes/_actions/follow.js
+++ b/routes/_actions/follow.js
@@ -3,7 +3,7 @@ import { followAccount, unfollowAccount } from '../_api/follow'
import { database } from '../_database/database'
import { toast } from '../_utils/toast'
-export async function setAccountFollowed (accountId, follow) {
+export async function setAccountFollowed (accountId, follow, toastOnSuccess) {
let instanceName = store.get('currentInstance')
let accessToken = store.get('accessToken')
try {
@@ -15,6 +15,9 @@ export async function setAccountFollowed (accountId, follow) {
let relationship = await database.getRelationship(instanceName, accountId)
relationship.following = follow
await database.setRelationship(instanceName, relationship)
+ if (toastOnSuccess) {
+ toast.say(`${follow ? 'Followed' : 'Unfollowed'}`)
+ }
} catch (e) {
console.error(e)
toast.say(`Unable to ${follow ? 'follow' : 'unfollow'} account: ` + (e.message || ''))
diff --git a/routes/_components/dialog/GenericDialogList.html b/routes/_components/dialog/GenericDialogList.html
new file mode 100644
index 0000000..df1cad9
--- /dev/null
+++ b/routes/_components/dialog/GenericDialogList.html
@@ -0,0 +1,57 @@
+
+ {{#each items as item @key}}
+
+
+
+ {{/each}}
+
+
\ No newline at end of file
diff --git a/routes/_components/dialog/PostPrivacyDialog.html b/routes/_components/dialog/PostPrivacyDialog.html
index fd32b9f..bc433ee 100644
--- a/routes/_components/dialog/PostPrivacyDialog.html
+++ b/routes/_components/dialog/PostPrivacyDialog.html
@@ -1,86 +1,28 @@
-
- {{#each postPrivacyOptions as option}}
-
-
-
- {{/each}}
-
+
-
\ No newline at end of file
diff --git a/routes/_components/dialog/dialogs.js b/routes/_components/dialog/dialogs.js
index 09d7d93..f919040 100644
--- a/routes/_components/dialog/dialogs.js
+++ b/routes/_components/dialog/dialogs.js
@@ -3,3 +3,4 @@ export * from './showImageDialog'
export * from './showVideoDialog'
export * from './showEmojiDialog'
export * from './showPostPrivacyDialog'
+export * from './showStatusOptionsDialog'
diff --git a/routes/_components/dialog/showStatusOptionsDialog.js b/routes/_components/dialog/showStatusOptionsDialog.js
new file mode 100644
index 0000000..aede6ad
--- /dev/null
+++ b/routes/_components/dialog/showStatusOptionsDialog.js
@@ -0,0 +1,13 @@
+import StatusOptionsDialog from './StatusOptionsDialog.html'
+
+export function showStatusOptionsDialog (statusId) {
+ let dialog = new StatusOptionsDialog({
+ target: document.getElementById('modal-dialog'),
+ data: {
+ label: 'Status options dialog',
+ title: 'Status options',
+ statusId: statusId
+ }
+ })
+ dialog.show()
+}
diff --git a/routes/_components/status/StatusToolbar.html b/routes/_components/status/StatusToolbar.html
index fee691b..79ea6f0 100644
--- a/routes/_components/status/StatusToolbar.html
+++ b/routes/_components/status/StatusToolbar.html
@@ -4,7 +4,6 @@
href="#fa-reply"
disabled="{{disableReply}}"
delegateKey="{{replyKey}}"
- ref:replyNode
/>
+ />