Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
920bb44a
Commit
920bb44a
authored
2 years ago
by
Sébastien Blin
Browse files
Options
Downloads
Patches
Plain Diff
swarmdetailspanel: only change photo if enough permissions
Change-Id: I293ff9e3fbca577c660fc2c204ed75568a176bb7
parent
b0d7461e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/commoncomponents/PhotoboothView.qml
+3
-2
3 additions, 2 deletions
src/commoncomponents/PhotoboothView.qml
src/mainview/components/SwarmDetailsPanel.qml
+1
-0
1 addition, 0 deletions
src/mainview/components/SwarmDetailsPanel.qml
with
4 additions
and
2 deletions
src/commoncomponents/PhotoboothView.qml
+
3
−
2
View file @
920bb44a
...
...
@@ -32,6 +32,7 @@ Item {
property
alias
imageId
:
avatar
.
imageId
property
bool
newConversation
:
false
property
bool
editable
:
true
property
real
avatarSize
property
real
buttonSize
:
avatarSize
property
bool
darkTheme
:
false
...
...
@@ -139,7 +140,7 @@ Item {
HoverHandler
{
target
:
parent
enabled
:
parent
.
visible
enabled
:
parent
.
visible
&&
editable
onHoveredChanged
:
{
overlayHighlighted
.
visible
=
hovered
}
...
...
@@ -147,7 +148,7 @@ Item {
TapHandler
{
target
:
parent
enabled
:
parent
.
visible
enabled
:
parent
.
visible
&&
editable
onTapped
:
{
imageLayer
.
visible
=
false
buttonsRowLayout
.
visible
=
true
...
...
This diff is collapsed.
Click to expand it.
src/mainview/components/SwarmDetailsPanel.qml
+
1
−
0
View file @
920bb44a
...
...
@@ -48,6 +48,7 @@ Rectangle {
PhotoboothView
{
id
:
currentAccountAvatar
darkTheme
:
UtilsAdapter
.
luma
(
root
.
color
)
editable
:
UtilsAdapter
.
getParticipantRole
(
CurrentAccount
.
id
,
CurrentConversation
.
id
,
CurrentAccount
.
uri
)
===
Member
.
Role
.
ADMIN
Layout.alignment
:
Qt
.
AlignHCenter
...
...
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