fix #35
This commit is contained in:
parent
e63f1188c8
commit
ea299ef583
3 changed files with 98 additions and 10 deletions
|
|
@ -15,8 +15,8 @@ Comments:
|
|||
url: file://3vTh1tMFeFM2JxaN
|
||||
position:
|
||||
pageIndex: 1
|
||||
x: '60.110185093015'
|
||||
y: '44.594594594595'
|
||||
x: "60.110185093015"
|
||||
y: "44.594594594595"
|
||||
replies: [ ]
|
||||
text: test
|
||||
author:
|
||||
|
|
@ -28,6 +28,90 @@ Comments:
|
|||
id: m41h238q
|
||||
type: comment
|
||||
isRead: false
|
||||
-
|
||||
location:
|
||||
page:
|
||||
uri: >
|
||||
projects/miss-dior-blooming-bouquet/proposal
|
||||
title: Offre commerciale
|
||||
href: '/projects/miss-dior-blooming-bouquet?dialog=proposal&fileIndex=0'
|
||||
project:
|
||||
title: Miss Dior Blooming Bouquet
|
||||
uri: projects/miss-dior-blooming-bouquet
|
||||
file:
|
||||
uuid: file://3vTh1tMFeFM2JxaN
|
||||
url: file://3vTh1tMFeFM2JxaN
|
||||
position:
|
||||
pageIndex: 1
|
||||
x: "26.098441098196"
|
||||
y: "64.864864864865"
|
||||
replies: [ ]
|
||||
text: Nouveau commentaire
|
||||
author:
|
||||
name: Utilisateur Dior
|
||||
email: utilisateur@dior.com
|
||||
uuid: user://HfuumN8s
|
||||
role: client
|
||||
date: 2024-12-04T15:00:15+01:00
|
||||
id: m49ygks2
|
||||
type: comment
|
||||
isRead: false
|
||||
-
|
||||
location:
|
||||
page:
|
||||
uri: >
|
||||
projects/miss-dior-blooming-bouquet/proposal
|
||||
title: Offre commerciale
|
||||
href: '/projects/miss-dior-blooming-bouquet?dialog=proposal&fileIndex=0'
|
||||
project:
|
||||
title: Miss Dior Blooming Bouquet
|
||||
uri: projects/miss-dior-blooming-bouquet
|
||||
file:
|
||||
uuid: file://3vTh1tMFeFM2JxaN
|
||||
url: file://3vTh1tMFeFM2JxaN
|
||||
position:
|
||||
pageIndex: 1
|
||||
x: "64.481172808783"
|
||||
y: "76.447876447876"
|
||||
replies: [ ]
|
||||
text: encore un commentaire
|
||||
author:
|
||||
name: Utilisateur Dior
|
||||
email: utilisateur@dior.com
|
||||
uuid: user://HfuumN8s
|
||||
role: client
|
||||
date: 2024-12-04T15:03:53+01:00
|
||||
id: m49yl8zc
|
||||
type: comment
|
||||
isRead: false
|
||||
-
|
||||
location:
|
||||
page:
|
||||
uri: >
|
||||
projects/miss-dior-blooming-bouquet/proposal
|
||||
title: Offre commerciale
|
||||
href: '/projects/miss-dior-blooming-bouquet?dialog=proposal&fileIndex=0'
|
||||
project:
|
||||
title: Miss Dior Blooming Bouquet
|
||||
uri: projects/miss-dior-blooming-bouquet
|
||||
file:
|
||||
uuid: file://3vTh1tMFeFM2JxaN
|
||||
url: file://3vTh1tMFeFM2JxaN
|
||||
position:
|
||||
pageIndex: 1
|
||||
x: '29.786457814876'
|
||||
y: '83.397683397683'
|
||||
replies: [ ]
|
||||
text: et encore un
|
||||
author:
|
||||
name: Utilisateur Dior
|
||||
email: utilisateur@dior.com
|
||||
uuid: user://HfuumN8s
|
||||
role: client
|
||||
date: 2024-12-04T15:05:10+01:00
|
||||
id: m49ymwuw
|
||||
type: comment
|
||||
isRead: false
|
||||
|
||||
----
|
||||
|
||||
|
|
|
|||
|
|
@ -118,11 +118,11 @@ class ProjectPage extends Page {
|
|||
|
||||
public function managers() {
|
||||
return kirby()->users()->filter(function($user) {
|
||||
if ($user->projects()->isEmpty()) {
|
||||
if ($user->role() != 'admin' && $user->projects()->isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $user->role() === 'admin' || $user->projects()->toPages()->has($this);
|
||||
return $user->role() == 'admin' || $user->projects()->toPages()->has($this);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
@ -58,9 +58,11 @@
|
|||
v-for="project in currentProjects"
|
||||
:class="{ active: isCurrent(project) }"
|
||||
>
|
||||
<router-link :to="project.uri" class="new">{{
|
||||
project.title
|
||||
}}</router-link>
|
||||
<router-link
|
||||
:to="project.uri"
|
||||
:class="hasUnreadNotification(project) ? 'new' : undefined"
|
||||
>{{ project.title }}</router-link
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
|
@ -71,9 +73,7 @@
|
|||
v-for="project in archivedProjects"
|
||||
:class="{ active: isCurrent(project) }"
|
||||
>
|
||||
<router-link :to="project.uri" class="new">{{
|
||||
project.title
|
||||
}}</router-link>
|
||||
<router-link :to="project.uri">{{ project.title }}</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
|
@ -141,6 +141,10 @@ function isCurrent(navItem) {
|
|||
return navItem.uri === route.path;
|
||||
}
|
||||
}
|
||||
|
||||
function hasUnreadNotification(project) {
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue