This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git


The following commit(s) were added to refs/heads/master by this push:
     new ae5cc22  AIRAVATA-2632 Description maxlength and focus
ae5cc22 is described below

commit ae5cc22b538737aa40b9e561e1d5e8e48f049e71
Author: Marcus Christie <[email protected]>
AuthorDate: Tue Apr 16 12:09:56 2019 -0400

    AIRAVATA-2632 Description maxlength and focus
---
 .../js/components/experiment/ExperimentDescriptionEditor.vue           | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentDescriptionEditor.vue
 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentDescriptionEditor.vue
index 23c391e..580596f 100644
--- 
a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentDescriptionEditor.vue
+++ 
b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentDescriptionEditor.vue
@@ -9,6 +9,8 @@
       id="experiment-description"
       v-model="data"
       rows="3"
+      ref="description"
+      maxlength="255"
     ></b-form-textarea>
     <div class="mt-1">
       <b-button
@@ -66,6 +68,7 @@ export default {
     startEditing() {
       this.originalValue = this.data;
       this.isEditing = true;
+      this.$nextTick(() => this.$refs.description.focus());
     },
     cancelEditing() {
       this.data = this.originalValue;

Reply via email to