diff --git a/css/base.css b/css/base.css index 3c594ed6..594bf051 100644 --- a/css/base.css +++ b/css/base.css @@ -405,6 +405,7 @@ table.permission-editor td { table.permission-editor td.checkbox { text-align: center; + color: #999; } .permission-editor .material-icons { diff --git a/index.html b/index.html index 62090238..0d2e0e25 100644 --- a/index.html +++ b/index.html @@ -67,8 +67,6 @@ // Make a data URL from public.photo function makeImageUrl(photo) { - //console.log("makeImageUrl"); - //console.log(photo); return (photo && photo.type && photo.data) ? 'data:image/' + photo.type + ';base64,' + photo.data : null; } @@ -433,16 +431,19 @@ var items = []; for (var i=0; i= 0) { + if (skip.indexOf(c) >= 0 && mode.indexOf(c) < 0) { + // Permission is marked as inactive: hide unchecked permissions, disable checked permissions continue; } items.push( {names[c]} - - -1)} onChange={this.handleChange}/> - {this.props.compare ? - -1)}/> + {skip.indexOf(c) < 0 ? + = 0)} onChange={this.handleChange}/> + : + = 0)} /> + }{this.props.compare ? + = 0)}/> : null} ); @@ -1738,7 +1739,6 @@ }, onSubsUpdated: function() { - console.log("onSubsUpdated"); var topic = Tinode.getTopic(this.props.topic); if (!topic) { return; @@ -1805,13 +1805,14 @@ case 'want': toEdit = this.state.modeWant; toCompare = this.state.modeGiven; - toSkip ='O'; + toSkip = this.state.groupTopic ? 'O' : 'ASDO'; titleEdit = 'Requested'; titleCompare = 'Granted'; break; case 'given': toEdit = this.state.modeGiven2; toCompare = this.state.modeWant2; + toSkip = this.state.groupTopic ? (this.state.owner ? '' : 'O') : 'ASDO'; titleEdit = 'Granted'; titleCompare = 'Requested'; break; @@ -1942,11 +1943,11 @@
-
Yours: Yours:   {this.state.access}
-
{this.state.fullName}′s: {this.state.fullName}′s:   {this.state.modeGiven2}