Don't let users leave groups if they're the only admin

This commit is contained in:
Evan Hahn
2021-04-05 12:44:13 -05:00
committed by Josh Perez
parent a7c78b3b23
commit c8dc8a7398
8 changed files with 158 additions and 35 deletions
+30 -10
View File
@@ -2966,6 +2966,16 @@ button.module-conversation-details__action-button {
&__leave-group {
color: $color-accent-red;
&--disabled {
@include light-theme {
color: $color-gray-60;
}
@include dark-theme {
color: $color-gray-25;
}
}
}
&__block-group {
@@ -3180,6 +3190,16 @@ button.module-conversation-details__action-button {
-webkit-mask: url(../images/icons/v2/leave-24.svg) no-repeat center;
background-color: $color-accent-red;
}
&--disabled::after {
@include light-theme {
background-color: $color-gray-60;
}
@include dark-theme {
background-color: $color-gray-25;
}
}
}
&--block {
@@ -3248,19 +3268,19 @@ button.module-conversation-details__action-button {
&--button {
color: inherit;
background: none;
}
&:hover {
@include light-theme {
background-color: $color-gray-02;
}
&:hover:not(:disabled) {
@include light-theme {
background-color: $color-gray-02;
}
@include dark-theme {
background-color: $color-gray-90;
}
@include dark-theme {
background-color: $color-gray-90;
}
& .module-conversation-details-panel-row__actions {
opacity: 1;
& .module-conversation-details-panel-row__actions {
opacity: 1;
}
}
}