Update sort options: Sort by blue cameras
This commit is contained in:
parent
c6d3acb735
commit
f88672559d
25
src/App.vue
25
src/App.vue
|
@ -864,6 +864,13 @@ export default {
|
||||||
return right - left;
|
return right - left;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case "blue":
|
||||||
|
result.sort((a, b) => {
|
||||||
|
let left = (a.video & this.VideoFlag.Active) ? (a.video & this.VideoFlag.NSFW ? 1 : 2) : 0,
|
||||||
|
right = (b.video & this.VideoFlag.Active) ? (b.video & this.VideoFlag.NSFW ? 1 : 2) : 0;
|
||||||
|
return right - left;
|
||||||
|
});
|
||||||
|
break;
|
||||||
case "status":
|
case "status":
|
||||||
result.sort((a, b) => {
|
result.sort((a, b) => {
|
||||||
if (a.status === b.status) return 0;
|
if (a.status === b.status) return 0;
|
||||||
|
@ -921,6 +928,13 @@ export default {
|
||||||
return right - left;
|
return right - left;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case "blue":
|
||||||
|
result.sort((a, b) => {
|
||||||
|
let left = (a.video & this.VideoFlag.Active) ? (a.video & this.VideoFlag.NSFW ? 1 : 2) : 0,
|
||||||
|
right = (b.video & this.VideoFlag.Active) ? (b.video & this.VideoFlag.NSFW ? 1 : 2) : 0;
|
||||||
|
return right - left;
|
||||||
|
});
|
||||||
|
break;
|
||||||
case "status":
|
case "status":
|
||||||
result.sort((a, b) => {
|
result.sort((a, b) => {
|
||||||
if (a.status === b.status) return 0;
|
if (a.status === b.status) return 0;
|
||||||
|
@ -5309,15 +5323,20 @@ export default {
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="select is-small is-fullwidth">
|
<div class="select is-small is-fullwidth">
|
||||||
<select v-model="whoSort">
|
<select v-model="whoSort">
|
||||||
|
<optgroup label="Users">
|
||||||
<option value="a-z">Username (a-z)</option>
|
<option value="a-z">Username (a-z)</option>
|
||||||
<option value="z-a">Username (z-a)</option>
|
<option value="z-a">Username (z-a)</option>
|
||||||
<option value="login">Login Time</option>
|
<option value="login">Login Time</option>
|
||||||
<option value="broadcasting">Broadcasting</option>
|
|
||||||
<option value="nsfw" v-show="config.permitNSFW">Red cameras</option>
|
|
||||||
<option value="status">Status</option>
|
<option value="status">Status</option>
|
||||||
<option value="emoji">Emoji/country flag</option>
|
<option value="emoji">Emoji/country flag</option>
|
||||||
<option value="gender">Gender</option>
|
<option value="gender">Gender</option>
|
||||||
<option value="op">User level (operators)</option>
|
<option value="op">☮ Operators</option>
|
||||||
|
</optgroup>
|
||||||
|
<optgroup label="Webcam Status">
|
||||||
|
<option value="broadcasting">Broadcasting</option>
|
||||||
|
<option value="nsfw" v-show="config.permitNSFW">Red cameras</option>
|
||||||
|
<option value="blue" v-show="config.permitNSFW">Blue cameras</option>
|
||||||
|
</optgroup>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user