color info
This commit is contained in:
parent
0512533244
commit
ae176dc623
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -6,7 +6,7 @@
|
||||||
<a-group-users v-if="item" ref="group-users"
|
<a-group-users v-if="item" ref="group-users"
|
||||||
:url="'{% url 'api:usergroup-list' %}?group=' + item.id"
|
:url="'{% url 'api:usergroup-list' %}?group=' + item.id"
|
||||||
commit-url="{% url 'api:usergroup-commit' %}"
|
commit-url="{% url 'api:usergroup-commit' %}"
|
||||||
:search-url="'{% url 'api:user-autocomplete' %}?search=${query}&group=' + item.id"
|
:search-url="'{% url 'api:user-autocomplete' %}?search=${query}&not_in_group=' + item.id"
|
||||||
:initials="{group_id: item.id }"
|
:initials="{group_id: item.id }"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<template v-for="item of items" :key="item.id">
|
<template v-for="item of items" :key="item.id">
|
||||||
<tr>
|
<tr :class="[item.created && 'has-text-info', item.deleted && 'has-text-danger']">
|
||||||
<td>
|
<td>
|
||||||
<b class="mr-3">{{ item.data.user.username }}</b>
|
<b class="mr-3">{{ item.data.user.username }}</b>
|
||||||
<span class="text-light">{{ item.data.user.first_name }} {{ item.data.user.last_name }}</span>
|
<span>{{ item.data.user.first_name }} {{ item.data.user.last_name }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="align-center">
|
<td class="align-center">
|
||||||
<input type="checkbox" class="checkbox" @change="item.deleted = $event.target.checked">
|
<input type="checkbox" class="checkbox" @change="item.deleted = $event.target.checked">
|
||||||
|
|
|
@ -41,9 +41,8 @@ export default class Model {
|
||||||
this.commit(data);
|
this.commit(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
get errors() {
|
get created() { return !this.id }
|
||||||
return this.data && this.data.__errors__
|
get errors() { return this.data && this.data.__errors__ }
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get instance id from its data
|
* Get instance id from its data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user