mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 07:56:23 +00:00
Only show the reset button if there are messages
This commit is contained in:
parent
f034644459
commit
e2999f37ad
@ -76,6 +76,9 @@ var SmsSettings = new Vue({
|
||||
ContactList.reset();
|
||||
Conversation.clear();
|
||||
});
|
||||
},
|
||||
isContactListEmpty: function () {
|
||||
return ContactList.contacts.length === 0;
|
||||
}
|
||||
}
|
||||
});
|
@ -72,7 +72,7 @@ use \OCA\OcSms\Lib\CountryCodes;
|
||||
<option value="0"><?php p($l->t('Disable'));?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<div v-if="!isContactListEmpty()">
|
||||
<button class="crit-button primary" v-on:click="wipeAllMessages();">Reset all messages</button>
|
||||
</div>
|
||||
</div> <!-- app-settings-content -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user