Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sakia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
clients
python
sakia
Commits
7a005eda
Commit
7a005eda
authored
9 years ago
by
inso
Browse files
Options
Downloads
Patches
Plain Diff
Remove current revoke button
parent
916475b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sakia/gui/community_view.py
+0
-22
0 additions, 22 deletions
src/sakia/gui/community_view.py
with
0 additions
and
22 deletions
src/sakia/gui/community_view.py
+
0
−
22
View file @
7a005eda
...
@@ -104,9 +104,6 @@ class CommunityWidget(QWidget, Ui_CommunityWidget):
...
@@ -104,9 +104,6 @@ class CommunityWidget(QWidget, Ui_CommunityWidget):
self
.
action_publish_uid
.
triggered
.
connect
(
self
.
publish_uid
)
self
.
action_publish_uid
.
triggered
.
connect
(
self
.
publish_uid
)
self
.
toolbutton_menu
.
addAction
(
self
.
action_publish_uid
)
self
.
toolbutton_menu
.
addAction
(
self
.
action_publish_uid
)
self
.
action_revoke_uid
.
triggered
.
connect
(
self
.
revoke_uid
)
self
.
toolbutton_menu
.
addAction
(
self
.
action_revoke_uid
)
self
.
button_membership
.
clicked
.
connect
(
self
.
send_membership_demand
)
self
.
button_membership
.
clicked
.
connect
(
self
.
send_membership_demand
)
def
show_closable_tab
(
self
,
tab
,
icon
,
title
):
def
show_closable_tab
(
self
,
tab
,
icon
,
title
):
...
@@ -376,25 +373,6 @@ The process to join back the community later will have to be done again.""")
...
@@ -376,25 +373,6 @@ The process to join back the community later will have to be done again.""")
await
QAsyncMessageBox
.
critical
(
self
,
self
.
tr
(
"
UID
"
),
await
QAsyncMessageBox
.
critical
(
self
,
self
.
tr
(
"
UID
"
),
result
[
1
])
result
[
1
])
@asyncify
async
def
revoke_uid
(
self
,
checked
=
False
):
password
=
await
self
.
password_asker
.
async_exec
()
if
self
.
password_asker
.
result
()
==
QDialog
.
Rejected
:
return
result
=
await
self
.
account
.
revoke
(
password
,
self
.
community
)
if
result
[
0
]:
if
self
.
app
.
preferences
[
'
notifications
'
]:
toast
.
display
(
self
.
tr
(
"
Revoke UID
"
),
self
.
tr
(
"
Your UID was revoked successfully.
"
))
else
:
await
QAsyncMessageBox
.
information
(
self
,
self
.
tr
(
"
Membership
"
),
self
.
tr
(
"
Your UID was revoked successfully.
"
))
else
:
if
self
.
app
.
preferences
[
'
notifications
'
]:
toast
.
display
(
self
.
tr
(
"
Revoke UID
"
),
result
[
1
])
else
:
await
QAsyncMessageBox
.
critical
(
self
,
self
.
tr
(
"
UID
"
),
result
[
1
])
def
retranslateUi
(
self
,
widget
):
def
retranslateUi
(
self
,
widget
):
"""
"""
Method to complete translations missing from generated code
Method to complete translations missing from generated code
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment