Temporary hide unused policy fields
This commit is contained in:
parent
24fdfd345c
commit
9151a185e0
|
@ -10,6 +10,17 @@
|
||||||
<li v-for="error in errors">{{ error }}</li>
|
<li v-for="error in errors">{{ error }}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</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="field">
|
<div class="field">
|
||||||
<label for="policy-summary">
|
<label for="policy-summary">
|
||||||
<translate>Reason</translate>
|
<translate>Reason</translate>
|
||||||
|
@ -39,16 +50,6 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</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>
|
<div class="ui hidden divider"></div>
|
||||||
<button @click="$emit('cancel')" class="ui basic left floated button">
|
<button @click="$emit('cancel')" class="ui basic left floated button">
|
||||||
<translate>Cancel</translate>
|
<translate>Cancel</translate>
|
||||||
|
@ -96,8 +97,9 @@ export default {
|
||||||
rejectMedia: _.get(current, 'reject_media', false),
|
rejectMedia: _.get(current, 'reject_media', false),
|
||||||
},
|
},
|
||||||
fieldConfig: [
|
fieldConfig: [
|
||||||
{id: "silenceActivity", icon: "feed"},
|
// we hide those until we actually have the related features implemented :)
|
||||||
{id: "silenceNotifications", icon: "bell"},
|
// {id: "silenceActivity", icon: "feed"},
|
||||||
|
// {id: "silenceNotifications", icon: "bell"},
|
||||||
{id: "rejectMedia", icon: "file"},
|
{id: "rejectMedia", icon: "file"},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue