Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

545 - HacknightPArticipants vuetify3 upgrade #546

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
item-title="date"
item-value="id"
label="Select Hacknight"
@input="onGetHacknight"
@update:modelValue="onGetHacknight"
>
</v-select>
</v-col>
Original file line number Diff line number Diff line change
@@ -1,49 +1,52 @@
<template>
<v-container fluid text-xs-center>
<v-row align="center" justify="center">
<v-col class="d-flex" cols="12" lg="8" md="10">
<v-combobox
v-model="selectedParticipants"
outlined
:items="filerOutParticipants()"
item-text="github_username"
item-value="github_username"
:search-input.sync="search"
hide-selected
label="Add participants"
multiple
small-chips
clearable
deletable-chips
append-outer-icon="mdi-cloud-upload"
>
<template v-if="noData" v-slot:no-data>
<v-list-item>
<v-list-item-content>
<v-col class="d-flex" cols="10" lg="8" md="18">
<v-container fluid>
<!-- eslint-disable -->
<v-combobox
v-model="selectedParticipants"
variant="outlined"
:items="filerOutParticipants()"
item-title="github_username"
item-value="github_username"
v-model:search="search"
hide-selected
label="Add participants"
multiple
chips
closable-chips
clearable
append-outer-icon="mdi-cloud-upload"
:hide-no-data="false"
>
<template v-slot:no-data>
<v-list-item>
<v-list-item-title>
No results matching "<strong>{{ search }}</strong
>".
</v-list-item-title>
</v-list-item-content>
</v-list-item>
</template>
<template v-slot:append-outer>
<v-btn
color="blue-grey"
class="ma-2 white--text add-hacknight-btn"
:disabled="!selectedParticipants.length"
@click="onAddParticipants"
offset-y
>
<v-icon dark>mdi-cloud-upload</v-icon>
</v-btn>
</template>
</v-combobox>
</v-list-item>
</template>
</v-combobox>
</v-container>
</v-col>
<v-col class="d-flex" cols="2">
<v-btn
color="blue-grey"
size="large"
class="white--text add-hacknight-btn"
:disabled="!selectedParticipants.length"
@click="onAddParticipants"
offset-y
>
<v-icon icon="mdi mdi-cloud-upload"></v-icon>
</v-btn>
</v-col>
</v-row>
<v-card class="mx-auto" color="white" max-width="500">
<v-toolbar flat color="transparent">
<v-avatar color="blue" size="48" style="margin-right: 1em">
<v-avatar class="ma-2" color="blue" size="48">
<span class="white--text headline">{{
getHacknight.participants.length
}}</span>
@@ -53,17 +56,18 @@
</v-toolbar>
<v-divider v-if="getHacknight.participants"></v-divider>
<v-list>
<template v-for="(item, i) in orderedParticipants()">
<v-list-item v-if="getHacknight.participants" :key="i">
<v-list-item-avatar>
<v-icon>mdi-account-outline</v-icon>
</v-list-item-avatar>
<v-list-item-title>{{ item.github_username }}</v-list-item-title>
<v-btn icon v-on:click="onDeleteParticipant(item)">
<v-list-item
v-for="item in orderedParticipants()"
:key="item.github_username"
:title="item.github_username"
prepend-icon="mdi mdi-account-outline"
>
<template v-slot:append>
<v-btn variant="plain" v-on:click="onDeleteParticipant(item)">
<i class="button_delete fas fa-user-times fa-lg"></i>
</v-btn>
</v-list-item>
</template>
</template>
</v-list-item>
</v-list>
</v-card>
</v-container>