From 794910ba8072c234a8d5153dc751a3ace6e367bb Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Tue, 27 Mar 2018 18:01:58 +0200 Subject: [PATCH] feat(ui): git FileDiff auto-refresh on page focus --- .../cli-ui/src/components/FileDiffView.vue | 26 ++++++++++++--- .../@vue/cli-ui/src/mixins/PageVisibility.js | 33 +++++++++++++++++++ 2 files changed, 55 insertions(+), 4 deletions(-) create mode 100644 packages/@vue/cli-ui/src/mixins/PageVisibility.js diff --git a/packages/@vue/cli-ui/src/components/FileDiffView.vue b/packages/@vue/cli-ui/src/components/FileDiffView.vue index 1b06c3689a..0a5b544f68 100644 --- a/packages/@vue/cli-ui/src/components/FileDiffView.vue +++ b/packages/@vue/cli-ui/src/components/FileDiffView.vue @@ -64,10 +64,12 @@ - + + +