Browse Source

[gist] Readonly the link field in gist modal

Harshg999 4 years ago
parent
commit
e3228265ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/js/ko/components/ko.shareGistModal.js

+ 1 - 1
desktop/core/src/desktop/js/ko/components/ko.shareGistModal.js

@@ -36,7 +36,7 @@ const TEMPLATE = `
     <div class="row-fluid">
     <div class="row-fluid">
       <div class="input-append">
       <div class="input-append">
         <form autocomplete="off">
         <form autocomplete="off">
-          <input id="gistLink" style="width: 510px" ${ window.PREVENT_AUTOFILL_INPUT_ATTRS } onfocus="this.select()" data-bind="value: link" type="text" placeholder="${ I18n('Link') }"/>
+          <input id="gistLink" style="width: 510px" ${ window.PREVENT_AUTOFILL_INPUT_ATTRS } onfocus="this.select()" data-bind="value: link" type="text" placeholder="${ I18n('Link') }" readonly="readonly"/>
           <button class="btn" type="button" data-dismiss="modal" data-clipboard-target="#gistLink" data-bind="clipboard"><i class="fa fa-clipboard"></i></button>
           <button class="btn" type="button" data-dismiss="modal" data-clipboard-target="#gistLink" data-bind="clipboard"><i class="fa fa-clipboard"></i></button>
         </form>
         </form>
       </div>
       </div>