Skip to content

Commit 574e6fc

Browse files
add webnext workflow deploying staging
1 parent 50dcfdb commit 574e6fc

File tree

4 files changed

+26
-25
lines changed

4 files changed

+26
-25
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build webnext
2+
permissions:
3+
contents: read
4+
id-token: write
5+
packages: write
6+
7+
on:
8+
push:
9+
branches:
10+
- webnext
11+
12+
jobs:
13+
build-current:
14+
uses: ./.github/workflows/build-docker.yml
15+
with:
16+
tags: |
17+
type=ref,event=branch
18+
type=sha
19+
20+
trigger-staging-deploy:
21+
needs: build-current
22+
if: ${{ github.event_name != 'pull_request' }}
23+
uses: ./.github/workflows/staging-deployment.yml
24+
secrets: inherit
25+
# FIXME: Remove this yml when new UI is done and merged to dev

web/src/pages/user-profile/UserProfilePage/tabs/ProfileDetailsTab/components/ProfileAuthCard/ProfileAuthCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ import { ProfileCard } from '../../../../components/ProfileCard/ProfileCard';
1111
import './style.scss';
1212
import { Badge } from '../../../../../../../shared/defguard-ui/components/Badge/Badge';
1313
import { openModal } from '../../../../../../../shared/hooks/modalControls/modalsSubjects';
14-
import { useOpenModal } from '../../../../../../../shared/hooks/modalControls/useOpenModal';
1514
import { useAuth } from '../../../../../../../shared/hooks/useAuth';
1615
import { useUserProfile } from '../../../../hooks/useUserProfilePage';
1716

1817
export const ProfileAuthCard = () => {
1918
const securityKeys = useUserProfile((s) => s.profile.security_keys);
2019
const user = useUserProfile((s) => s.profile.user);
2120
const authUsername = useAuth((s) => s.user?.username as string);
22-
const openChangePasswordModal = useOpenModal('changePassword');
2321

2422
const totpMenuItems = useMemo(() => {
2523
const res: MenuItemsGroup = {
@@ -47,7 +45,7 @@ export const ProfileAuthCard = () => {
4745
text={m.profile_auth_card_password_change()}
4846
onClick={() => {
4947
// open admin form only if admin and is not editing self
50-
openChangePasswordModal({
48+
openModal('changePassword', {
5149
user,
5250
adminForm: user.is_admin && user.username !== authUsername,
5351
});

web/src/shared/hooks/modalControls/useCloseModal.tsx

Whitespace-only changes.

web/src/shared/hooks/modalControls/useOpenModal.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)