Skip to content

Commit

Permalink
Refactor component name: SmallButton -> XSmallButton
Browse files Browse the repository at this point in the history
Signed-off-by: Don Alfons Nisnoni <[email protected]>
  • Loading branch information
itsdonnix committed Mar 29, 2021
1 parent 81d7d7b commit ef6e8b4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/main/frontend/src/components/GroupMembers.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import SmallButton from '../components/SmallButton.svelte';
import SmallButton from './XSmallButton.svelte';
import { users } from '../stores/users.js';
import { mdiMinus, mdiPlus } from '@mdi/js';
import { Button, Icon } from 'svelte-materialify/src';
Expand All @@ -13,6 +13,7 @@
let transformedUsers = [];
let transformedMembers = [];
let transformedGroups = [];
function addUserToMembers() {
const index = selectUserElement.selectedIndex;
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/src/routes/admin/groups.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import CommonDialog from '../../components/CommonDialog.svelte';
import { dialogState, loading } from '../../shared/common.js';
import Table from '../../components/Table.svelte';
import SmallButton from '../../components/SmallButton.svelte';
import SmallButton from '../../components/XSmallButton.svelte';
import FloatAddButton from '../../components/FloatAddButton.svelte';
import GroupMembers from '../../components/GroupMembers.svelte';
import { fetchUsers } from '../../stores/users';
Expand Down
8 changes: 4 additions & 4 deletions src/main/frontend/src/routes/admin/permissions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import CommonDialog from '../../components/CommonDialog.svelte';
import { dialogState, loading } from '../../shared/common.js';
import Table from '../../components/Table.svelte';
import SmallButton from '../../components/SmallButton.svelte';
import XSmallButton from '../../components/XSmallButton.svelte';
import ConstraintsEditor from '../../components/ConstraintsEditor.svelte';
import FloatAddButton from '../../components/FloatAddButton.svelte';
Expand Down Expand Up @@ -175,15 +175,15 @@
<td>{permission.description}</td>
<td>{permission.constraints.map((c) => c.name).join(', ')}</td>
<td class="text-center table-row-actions">
<SmallButton
<XSmallButton
on:click={() => openManageConstraintsDialog(index)}
iconPath={mdiLock}
title="Manage permission constraints" />
<SmallButton
<XSmallButton
on:click={() => openUpdateDialog(index)}
iconPath={mdiPencil}
title="Update/edit permission" />
<SmallButton
<XSmallButton
on:click={() => openDeleteDialog(index)}
iconPath={mdiDelete}
title="Remove/delete permission" />
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/src/routes/admin/roles.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import CommonDialog from '../../components/CommonDialog.svelte';
import { dialogState, loading } from '../../shared/common.js';
import Table from '../../components/Table.svelte';
import SmallButton from '../../components/SmallButton.svelte';
import SmallButton from '../../components/XSmallButton.svelte';
import FloatAddButton from '../../components/FloatAddButton.svelte';
let initialRole = {
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/src/routes/admin/tenants.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { tenants, create, update, remove } from '../../stores/tenantsSubscription.js';
import CommonDialog from '../../components/CommonDialog.svelte';
import { dialogState, loading } from '../../shared/common.js';
import SmallButton from '../../components/SmallButton.svelte';
import SmallButton from '../../components/XSmallButton.svelte';
import FloatAddButton from '../../components/FloatAddButton.svelte';
let initialTenant = {
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/src/routes/admin/users.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import DeleteDialog from '../../components/DeleteDialog.svelte';
import CommonDialog from '../../components/CommonDialog.svelte';
import { dialogState, loading } from '../../shared/common.js';
import SmallButton from '../../components/SmallButton.svelte';
import SmallButton from '../../components/XSmallButton.svelte';
import FloatAddButton from '../../components/FloatAddButton.svelte';
let initialUser = {
Expand Down

0 comments on commit ef6e8b4

Please sign in to comment.