web/satellite: removed ability to check project owner for deletion (#3350)

This commit is contained in:
Vitalii Shpital 2019-10-25 13:01:03 +03:00 committed by GitHub
parent 3880f7a60e
commit 03f399857f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 8 deletions

View File

@ -2,9 +2,9 @@
// See LICENSE for copying information.
<template>
<div class="user-container">
<div class="user-container" :class="{ 'owner': isProjectOwner }">
<div class="user-container__base-info">
<div class="checkbox"></div>
<div v-if="!isProjectOwner" class="checkbox"></div>
<div class="user-container__base-info__avatar" :style="avatarData.style">
<h1 class="user-container__base-info__avatar__letter">{{avatarData.letter}}</h1>
</div>
@ -85,7 +85,6 @@ export default class ProjectMemberListItem extends Vue {
max-width: 40px;
min-height: 40px;
max-height: 40px;
margin-left: 20px;
border-radius: 6px;
display: flex;
align-items: center;
@ -132,6 +131,7 @@ export default class ProjectMemberListItem extends Vue {
.checkbox {
background-image: url("../../../static/images/team/checkboxEmpty.png");
margin-right: 20px;
min-width: 23px;
height: 23px;
}
@ -152,4 +152,8 @@ export default class ProjectMemberListItem extends Vue {
color: #FFFFFF;
}
}
.owner {
cursor: default;
}
</style>

View File

@ -89,8 +89,10 @@ export default class ProjectMembersArea extends Vue {
}
public onMemberClick(member: ProjectMember): void {
if (this.$store.getters.selectedProject.ownerId !== member.user.id) {
this.$store.dispatch(TOGGLE_SELECTION, member);
}
}
public get projectMembers(): ProjectMember[] {
return this.$store.state.projectMembersModule.page.projectMembers;

View File

@ -1,9 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render correctly 1`] = `
<div class="user-container">
<div class="user-container owner">
<div class="user-container__base-info">
<div class="checkbox"></div>
<!---->
<div class="user-container__base-info__avatar" style="background: rgb(88, 185, 255);">
<h1 class="user-container__base-info__avatar__letter">T</h1>
</div>
@ -18,9 +18,9 @@ exports[`should render correctly 1`] = `
`;
exports[`should render correctly with item row highlighted 1`] = `
<div class="user-container">
<div class="user-container owner">
<div class="user-container__base-info">
<div class="checkbox"></div>
<!---->
<div class="user-container__base-info__avatar" style="background: rgb(88, 185, 255);">
<h1 class="user-container__base-info__avatar__letter">T</h1>
</div>