parent
ace1a1b063
commit
6870a7f9b1
@ -2,19 +2,19 @@
|
|||||||
import { _ } from "svelte-i18n";
|
import { _ } from "svelte-i18n";
|
||||||
import Toastify from "toastify-js";
|
import Toastify from "toastify-js";
|
||||||
import { RunnerTeamService } from "@odit/lfk-client-js";
|
import { RunnerTeamService } from "@odit/lfk-client-js";
|
||||||
const teams_promise = RunnerTeamService.runnerTeamControllerGetAll()
|
const teams_promise = RunnerTeamService.runnerTeamControllerGetAll();
|
||||||
import "gridjs/dist/theme/mermaid.css";
|
import "gridjs/dist/theme/mermaid.css";
|
||||||
import { users as usersstore } from "../store.js";
|
import { users as usersstore } from "../store.js";
|
||||||
import store from "../store";
|
import store from "../store";
|
||||||
import TeamsEmptyState from "./TeamsEmptyState.svelte";
|
import TeamsEmptyState from "./TeamsEmptyState.svelte";
|
||||||
$: searchvalue = "";
|
$: searchvalue = "";
|
||||||
$: active_deletes = [];
|
$: active_deletes = [];
|
||||||
export let current_teams=[];
|
export let current_teams = [];
|
||||||
$: userscache = [];
|
$: userscache = [];
|
||||||
$: advanced_search = false;
|
$: advanced_search = false;
|
||||||
usersstore.subscribe((val) => {
|
usersstore.subscribe((val) => {
|
||||||
userscache = val;
|
userscache = val;
|
||||||
current_teams=val;
|
current_teams = val;
|
||||||
});
|
});
|
||||||
teams_promise.then((data) => {
|
teams_promise.then((data) => {
|
||||||
usersstore.set(data);
|
usersstore.set(data);
|
||||||
@ -138,7 +138,7 @@
|
|||||||
on:click={() => {
|
on:click={() => {
|
||||||
UserService.userControllerRemove(u.id, true)
|
UserService.userControllerRemove(u.id, true)
|
||||||
.then((resp) => {
|
.then((resp) => {
|
||||||
current_teams=current_teams.filter(obj=>obj.id!==u.id);
|
current_teams = current_teams.filter((obj) => obj.id !== u.id);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
// error deleting user
|
// error deleting user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user