Skip to content

Commit

Permalink
Move css from custom file.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Jul 26, 2023
1 parent 5d0405e commit 1d7b829
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions hypha/apply/funds/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1430,11 +1430,11 @@ def withdraw(self, request, *args, **kwargs):
if not settings.ENABLE_SUBMISSION_WITHDRAWAL:
raise PermissionDenied

obj = self.get_object()

if not request.user.is_applicant:
raise PermissionDenied

obj = self.get_object()

withdraw_actions = [action for action in obj.workflow[obj.status].transitions.keys() if 'withdraw' in action]

if len(withdraw_actions) > 0:
Expand Down
8 changes: 5 additions & 3 deletions hypha/static_src/src/sass/apply/components/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@
}

&--edit-submission,
&--delete-submission {
&--delete-submission,
&--withdraw-submission {
display: flex;
align-items: center;
font-weight: $weight--bold;
Expand All @@ -249,12 +250,13 @@
}
}

&--delete-submission {
&--delete-submission,
&--withdraw-submission {
margin-right: 1rem;
padding-right: 1rem;
border-right: 2px solid $color--mid-grey;

&:only-child {
&:last-child {
border-right: 0;
padding-right: 0;
margin-right: 0;
Expand Down
6 changes: 1 addition & 5 deletions hypha/static_src/src/sass/apply/custom/_custom.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
.link--withdraw-submission {
margin-right: 1rem;
padding-right: 1rem;
font-weight: 700;
}
// stylelint-disable no-empty-source

0 comments on commit 1d7b829

Please sign in to comment.