diff --git a/src/renderer/components/TimelineSpace/Modals/NewToot.vue b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
index 6659709e..1cf47ba5 100644
--- a/src/renderer/components/TimelineSpace/Modals/NewToot.vue
+++ b/src/renderer/components/TimelineSpace/Modals/NewToot.vue
@@ -31,6 +31,12 @@
+
+
+
+
+
+
{{ 500 - status.length }}
Cancel
Toot
@@ -61,6 +67,7 @@ export default {
attachedMedias: state => state.TimelineSpace.Modals.NewToot.attachedMedias,
blockSubmit: state => state.TimelineSpace.Modals.NewToot.blockSubmit,
visibility: state => state.TimelineSpace.Modals.NewToot.visibility,
+ sensitive: state => state.TimelineSpace.Modals.NewToot.sensitive,
visibilityIcon: (state) => {
switch (state.TimelineSpace.Modals.NewToot.visibility) {
case 'public':
@@ -119,7 +126,8 @@ export default {
}
let form = {
status: this.status,
- visibility: this.visibility
+ visibility: this.visibility,
+ sensitive: this.sensitive
}
if (this.replyToId !== null) {
form = Object.assign(form, {
@@ -193,6 +201,9 @@ export default {
},
changeVisibility (level) {
this.$store.commit('TimelineSpace/Modals/NewToot/changeVisibility', level)
+ },
+ changeSensitive () {
+ this.$store.commit('TimelineSpace/Modals/NewToot/changeSensitive', !this.sensitive)
}
}
}
@@ -274,6 +285,11 @@ export default {
margin-left: 8px;
}
+ .sensitive {
+ float: left;
+ margin-left: 8px;
+ }
+
.text-count {
padding-right: 24px;
color: #909399;
diff --git a/src/renderer/store/TimelineSpace/Modals/NewToot.js b/src/renderer/store/TimelineSpace/Modals/NewToot.js
index 81762aa7..0e016474 100644
--- a/src/renderer/store/TimelineSpace/Modals/NewToot.js
+++ b/src/renderer/store/TimelineSpace/Modals/NewToot.js
@@ -10,7 +10,8 @@ const NewToot = {
replyToMessage: null,
blockSubmit: false,
attachedMedias: [],
- visibility: 'public'
+ visibility: 'public',
+ sensitive: false
},
mutations: {
changeModal (state, value) {
@@ -36,6 +37,9 @@ const NewToot = {
},
changeVisibility (state, value) {
state.visibility = value
+ },
+ changeSensitive (state, value) {
+ state.sensitive = value
}
},
actions: {
@@ -70,6 +74,7 @@ const NewToot = {
commit('setReplyTo', null)
commit('changeBlockSubmit', false)
commit('clearAttachedMedias')
+ commit('changeSensitive', false)
}
},
uploadImage ({ state, commit, rootState }, image) {