Skip to content

Commit f8017ab

Browse files
committed
feat: disable delete button for contributors that are not signed on
#2251
1 parent 1efb581 commit f8017ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom-dependency-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ai.elimu:webapp:war:2.6.124-SNAPSHOT
1+
ai.elimu:webapp:war:2.6.125-SNAPSHOT
22
+- ai.elimu:model:jar:model-2.0.120:compile
33
| \- com.google.code.gson:gson:jar:2.13.1:compile
44
| \- com.google.errorprone:error_prone_annotations:jar:2.38.0:compile

src/main/webapp/WEB-INF/jsp/content/storybook/edit.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<button id="submitButton" class="btn-large waves-effect waves-light" type="submit" <c:if test="${empty contributor}">disabled</c:if>>
111111
Edit <i class="material-icons right">send</i>
112112
</button>
113-
<a href="<spring:url value='/content/storybook/delete/${storyBook.id}' />" class="waves-effect waves-red red-text btn-flat right">Delete</a>
113+
<a href="<spring:url value='/content/storybook/delete/${storyBook.id}' />" class="waves-effect waves-red red-text btn-flat <c:if test='${empty contributor}'>disabled</c:if> right">Delete</a>
114114
</form:form>
115115
</div>
116116

0 commit comments

Comments
 (0)