Skip to content
Snippets Groups Projects
Commit 7a005eda authored by inso's avatar inso
Browse files

Remove current revoke button

parent 916475b2
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment