-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
131 kunna ta bort access för specifika poster/personer (#350)
* added temporary ban button, no functionality. ban button but banning is not implemented logic for banpolicy in database working isBan checkbox error color and good looking switch correct colored switch add adaptive text color for switch add ban reason text field textarea always visible add information button implement functional doorAccess banning shift label for isBan button add id to labels remove id from labeled * ban button but banning is not implemented * logic for banpolicy in database * working isBan checkbox * error color and good looking switch * correct colored switch * add adaptive text color for switch * add ban reason text field * textarea always visible * add information button * implement functional doorAccess banning * shift label for isBan button * ban button but banning is not implemented * logic for banpolicy in database * working isBan checkbox * error color and good looking switch * correct colored switch * add adaptive text color for switch * add ban reason text field * textarea always visible * add information button * implement functional doorAccess banning * shift label for isBan button * added temporary ban button, no functionality. ban button but banning is not implemented logic for banpolicy in database working isBan checkbox error color and good looking switch correct colored switch add adaptive text color for switch add ban reason text field textarea always visible add information button implement functional doorAccess banning shift label for isBan button add id to labels remove id from labeled * fix table appearance * change svg icons to mdi * fix isBan button formatting * fix to information button horisontal alignment * fix formatting remove message * fix banaccess priority * comment out old logic for banned users * add prettier formatting * add ban and information to DoorAccessPolicy * Add db seed function to generate random position id * add working door access ban * fix * final revisions --------- Co-authored-by: jo4485li-s <[email protected]> Co-authored-by: Daniel Adu-Gyan <[email protected]>
- Loading branch information
1 parent
5f61da8
commit 36658d2
Showing
13 changed files
with
351 additions
and
72 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/database/prisma/migrations/20240416184953_added_isban/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "door_access_policies" ADD COLUMN "is_ban" BOOLEAN NOT NULL DEFAULT false; |
2 changes: 2 additions & 0 deletions
2
src/database/prisma/migrations/20240507185613_information_dooraccess/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "door_access_policies" ADD COLUMN "information" VARCHAR(255); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.