Temporary hide unused policy fields

This commit is contained in:
Eliot Berriot 2019-01-09 17:50:32 +01:00
parent 24fdfd345c
commit 9151a185e0
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 14 additions and 12 deletions

View File

@ -10,6 +10,17 @@
<li v-for="error in errors">{{ error }}</li>
</ul>
</div>
<div class="field" v-if="object">
<div class="ui toggle checkbox">
<input id="policy-is-active" v-model="current.isActive" type="checkbox">
<label for="policy-is-active">
<translate v-if="current.isActive" key="1">Enabled</translate>
<translate v-else key="2">Disabled</translate>
<tooltip :content="labels.isActiveHelp" />
</label>
</div>
</div>
<div class="field">
<label for="policy-summary">
<translate>Reason</translate>
@ -39,16 +50,6 @@
</label>
</div>
</div>
<div class="field" v-if="object">
<div class="ui toggle checkbox">
<input id="policy-is-active" v-model="current.isActive" type="checkbox">
<label for="policy-is-active">
<translate v-if="current.isActive" key="1">Enabled</translate>
<translate v-else key="2">Disabled</translate>
<tooltip :content="labels.isActiveHelp" />
</label>
</div>
</div>
<div class="ui hidden divider"></div>
<button @click="$emit('cancel')" class="ui basic left floated button">
<translate>Cancel</translate>
@ -96,8 +97,9 @@ export default {
rejectMedia: _.get(current, 'reject_media', false),
},
fieldConfig: [
{id: "silenceActivity", icon: "feed"},
{id: "silenceNotifications", icon: "bell"},
// we hide those until we actually have the related features implemented :)
// {id: "silenceActivity", icon: "feed"},
// {id: "silenceNotifications", icon: "bell"},
{id: "rejectMedia", icon: "file"},
]
}