From 77887dc2ecc351121f69e7ce2fc0a7d013e58780 Mon Sep 17 00:00:00 2001 From: Matteo Cominetti Date: Tue, 13 Oct 2020 16:48:43 +0100 Subject: [PATCH] feat(ui): edit commit message --- .../src/components/dialogs/CommitDialog.vue | 105 ++++++++++++++++++ frontend/src/graphql/commit.gql | 36 ++++++ frontend/src/views/Commit.vue | 65 ++++++++--- 3 files changed, 189 insertions(+), 17 deletions(-) create mode 100644 frontend/src/components/dialogs/CommitDialog.vue create mode 100644 frontend/src/graphql/commit.gql diff --git a/frontend/src/components/dialogs/CommitDialog.vue b/frontend/src/components/dialogs/CommitDialog.vue new file mode 100644 index 000000000..5769df7a1 --- /dev/null +++ b/frontend/src/components/dialogs/CommitDialog.vue @@ -0,0 +1,105 @@ + + diff --git a/frontend/src/graphql/commit.gql b/frontend/src/graphql/commit.gql new file mode 100644 index 000000000..f52a8d896 --- /dev/null +++ b/frontend/src/graphql/commit.gql @@ -0,0 +1,36 @@ +query Stream($streamid: String!, $id: String!) { + stream(id: $streamid) { + id + name + description + isPublic + createdAt + updatedAt + collaborators { + id + name + role + } + branches { + totalCount + } + commits { + totalCount + } + commit(id: $id) { + id + message + authorName + authorId + createdAt + realObject { + id + speckleType + applicationId + createdAt + totalChildrenCount + data + } + } + } +} diff --git a/frontend/src/views/Commit.vue b/frontend/src/views/Commit.vue index 334486302..52fb37a07 100644 --- a/frontend/src/views/Commit.vue +++ b/frontend/src/views/Commit.vue @@ -8,12 +8,22 @@ - + + {{ stream.commit.message }} + WORK IN PROGRESS + + + + mdi-pencil-outline + @@ -22,40 +32,61 @@