Skip to content

Commit

Permalink
Merge pull request #633 from nearbeach/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
robotichead authored Jun 19, 2024
2 parents c820dbd + 54840f8 commit 506ac31
Show file tree
Hide file tree
Showing 26 changed files with 64 additions and 23 deletions.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/NearBeach.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/NearBeach.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/customer-information.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/customer-information.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/gantt-information.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/gantt-information.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/group-information.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified NearBeach/static/NearBeach/group-information.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion NearBeach/static/NearBeach/new-permission-set.min.js

Large diffs are not rendered by default.

Binary file modified NearBeach/static/NearBeach/new-permission-set.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
v-bind:gantt-start-date="`{{ gantt_start_date }}`"
v-bind:location-id="{{ sprint_id }}"
v-bind:root-url="`{% url 'dashboard' %}`"
v-bind:parent-status="`{{ sprint_status }}`"
v-bind:theme="`{{ theme }}`"
v-bind:user-level="{{ user_level }}"
></gantt-information>
Expand Down
1 change: 1 addition & 0 deletions NearBeach/views/sprint_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def sprint_information(request, sprint_id, *args, **kwargs):
c = {
"gantt_end_date": gantt_end_date,
"gantt_start_date": gantt_start_date,
"sprint_status": sprint_results[0]['sprint_status'],
"nearbeach_title": f"Sprint Information {sprint_id}",
"need_tinymce": False,
"sprint_id": sprint_id,
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/js/components/customers/CustomerInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<div class="card">
<div class="card-body">
<!-- TITLE -->
<h1>Customer Information</h1>
<h1 class="mb-4">Customer Information</h1>
<a v-bind:href="`${rootUrl}search/customer/`"
class="mt-4"
>Go back to customer search</a
>
<hr/>
Expand Down
16 changes: 16 additions & 0 deletions src/js/components/gantt_chart/GanttInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
:key="index"
v-bind:end-date="row.end_date"
v-bind:index="index"
v-bind:is-closed="isParentClosed()"
v-bind:object-id="row.object_id"
v-bind:object-type="row.object_type"
v-bind:higher-order-status="row.higher_order_status"
Expand Down Expand Up @@ -89,6 +90,10 @@ export default {
type: Number,
default: 0,
},
parentStatus: {
type: String,
default: "",
},
rootUrl: {
type: String,
default: "/",
Expand Down Expand Up @@ -192,6 +197,14 @@ export default {
});
})
},
isParentClosed() {
const closed_status = [
'finished',
'closed',
];
return closed_status.includes(this.parentStatus.toLowerCase());
},
mouseDown(data) {
//Update the mouse down variables
this.mdClientXInitial = data.mdClientXInitial;
Expand Down Expand Up @@ -227,6 +240,9 @@ export default {
//Prevents default
event.preventDefault();
//If closed do nothing
if (this.isParentClosed()) return;
//Make sure not on a touch device
const touch = matchMedia('(hover: none)').matches;
if (touch) return;
Expand Down
10 changes: 7 additions & 3 deletions src/js/components/gantt_chart/RenderGanttRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
v-model:value="localStartDate"
type="datetime"
@update:value="modifiedStartDate"
:disabled="userLevel <= 1"
:disabled="userLevel <= 1 || isClosed"
:format="datePickerFormat"
/>
</div>
Expand All @@ -18,7 +18,7 @@
v-model:value="localEndDate"
type="datetime"
@update:value="modifiedEndDate"
:disabled="userLevel <= 1"
:disabled="userLevel <= 1 || isClosed"
:format="datePickerFormat"
></n-date-picker>
</div>
Expand All @@ -27,7 +27,7 @@
v-model:value="localStatusId"
:options="statusList"
:on-update-value="updateStatus"
:disabled="userLevel <= 1"
:disabled="userLevel <= 1 || isClosed"
></n-select>
</div>
</div>
Expand Down Expand Up @@ -90,6 +90,10 @@ export default {
type: Number,
default: 0,
},
isClosed: {
type: Boolean,
default: false,
},
objectId: {
type: Number,
default: 0,
Expand Down
3 changes: 1 addition & 2 deletions src/js/components/groups/GroupInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<n-config-provider :theme="getTheme(theme)">
<div class="card">
<div class="card-body">
<h1>Group Information</h1>
<h1 class="mb-4">Group Information</h1>
<a v-bind:href="`${this.rootUrl}search/group/`"
class="mt-4"
>Back to group list</a
>
<hr/>
Expand Down
8 changes: 8 additions & 0 deletions src/js/components/organisations/NewOrganisation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<button
class="btn btn-primary save-changes"
v-on:click="uploadOrganisationData"
v-bind:disabled="disableSubmitButton"
>
Submit Organisation
</button>
Expand Down Expand Up @@ -165,6 +166,7 @@ export default {
},
data() {
return {
disableSubmitButton: false,
duplicateOrganisations: [],
organisationNameModel: "",
organisationWebsiteModel: "",
Expand Down Expand Up @@ -244,6 +246,9 @@ export default {
return data_to_send;
},
uploadOrganisationData() {
//Disable the upload button
this.disableSubmitButton = true;
//Use Axios to send the data
//Get the data to send
this.axios.post(
Expand All @@ -259,6 +264,9 @@ export default {
extra_classes: "bg-danger",
delay: 0,
});
//Enable the submit button
this.disableSubmitButton = false;
});
},
},
Expand Down

0 comments on commit 506ac31

Please sign in to comment.